package cn.dhnep.demo.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author dhn
 * @since 2021-09-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_order_item")
@ApiModel(value="OrderItem对象", description="")
@AllArgsConstructor
@NoArgsConstructor
public class OrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "订单id")
    private Integer orderId;

    @ApiModelProperty(value = "商品类别")
    private String productType;

    @ApiModelProperty(value = "商品图片")
    private String productImg;

    @ApiModelProperty(value = "称重时间")
    private Date weighTime;

    @ApiModelProperty(value = "称重重量")
    private Double weighWeight;

    @ApiModelProperty(value = "扣秤重量")
    private Double noScalesWeigth;

    @ApiModelProperty(value = "结算重量")
    private Double finallyWeight;

    @ApiModelProperty(value = "今日价格")
    private Double todayPrice;

    @ApiModelProperty(value = "单价")
    private Double unitPrice;

    @ApiModelProperty(value = "件数")
    private Integer amount;

    @ApiModelProperty(value = "计价单位")
    private String unit;

    @ApiModelProperty(value = "总金额")
    private Double sum;

    @ApiModelProperty(value = "说明")
    private String itemExplain;

    @ApiModelProperty(value = "订单生成图片")
    private String itemImg;

    @ApiModelProperty(value = "状态")
    private String status;


}
